package top.healthylife.gateway.platform.br.dto.basicdata.consumptionc.res;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import top.healthylife.gateway.dto.annotation.ApiField;
import top.healthylife.gateway.platform.br.dto.baseresult.BrResBaseResultDto;

import java.util.HashMap;
import java.util.Map;

/**
 * @author : 高则喜
 * @Date 2020/12/23 11:36
 */
@Data
@Accessors(chain = true)
@ApiModel("商品消费指数")
public class BrResConsumptionCDto extends BrResBaseResultDto {

    @ApiField(value = "产品查询标识 ", info = "1 查询成功_有结果，0 查询成功_无结果， 99 查询失败 ")
    @ApiModelProperty(value = "产品查询标识 ", notes = "1 查询成功_有结果，0 查询成功_无结果， 99 查询失败 ")
    private Flag flag;

    @ApiField(value = "consumptionC ", info = " ")
    @ApiModelProperty(value = " consumptionC", notes = " ")
    private ConsumptionC consumptionC;

    @ApiField(value = "商品消费指数类目映射表", info = " ")
    @ApiModelProperty(value = "商品消费指数类目映射表", notes = " ")
    static Map category;

    /**
     * 百融媒体阅览指数类目
     * 中文类别名,衍生变量取值
     */
    static {
        category = new HashMap<String, String>();
        category.put("本地生活", "C1");
        category.put("保险/理财", "C2");
        category.put("出差旅游", "C3");
        category.put("宠物生活", "C4");
        category.put("电脑/办公", "C5");
        category.put("房产", "C6");
        category.put("服装配饰", "C7");
        category.put("个护化妆", "C8");
        category.put("家具建材", "C9");
        category.put("家居家纺", "C10");
        category.put("家用电器", "C11");
        category.put("教育培训", "C12");
        category.put("美食特产", "C13");
        category.put("母婴用品", "C14");
        category.put("汽车用品", "C15");
        category.put("其他", "C16");
        category.put("日用百货", "C17");
        category.put("收藏", "C18");
        category.put("手机/手机配件", "C19");
        category.put("数码", "C20");
        category.put("通讯", "C21");
        category.put("文化娱乐", "C22");
        category.put("网络游戏/虚拟物品", "C23");
        category.put("鞋", "C24");
        category.put("箱包", "C25");
        category.put("运动户外", "C26");
        category.put("医疗保健", "C27");
        category.put("珠宝贵金属", "C28");
        category.put("钟表首饰", "C29");

    }
}
